/**
 * @Company: 北京慧点科技有限公司 | www.smartdot.com.cn
 * @Copyright 1998-2020 © Smartdot Technologies Co., Ltd.
 */
package com.springlearn.zhoufei.other.spring.demo1;

import lombok.Data;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * 描述该类- JPA
 *
 * @author <a href="mailto:zhoufei@smartdot.com.cn">zhoufei</a>
 * @class: Hello
 * @date 2020/9/18 20:08
 * @Verson 1.0 -2020/9/18 20:08
 * @see
 */
@Data
public class Hello11 {
    
    private List  list1;
    private Set  set1;
    private Map map;
    private Properties props;


    public static void main(String[] args) {
        String pathHello = "./other\\Bean.xml";
        AbstractApplicationContext context = new ClassPathXmlApplicationContext(pathHello);
        Hello11 hello11 = (Hello11) context.getBean("hello11");


        System.out.println("----------list-------");

        for (Object o : hello11.getList1()) {
            System.out.println(o.toString());
        }

        System.out.println("----------set1-------");
        for (Object o : hello11.getSet1()) {
            System.out.println(o.toString());
        }
        System.out.println("----------map-------");
        for (Object key : hello11.getMap().entrySet()) {
            System.out.println(key.toString());
        }
        System.out.println("----------props-------");

        for (Object key : hello11.getProps().entrySet()) {
            System.out.println(key.toString());
        }
    }

}